--[[
    全局变量
]]
Global = {}

require("head")

require("BaseClass")

require("UIManager").New()

-- 数据缓存区列表
Global.DateBuffers = {}

-- 背包格子列表
Global.BagCells = {}

Global.BagItems = {}

Global.GoodsDate = {}
local goodConfig = require("GoodConfig").New()
if not Global.GoodsDate or goodConfig.goodsData then
    if goodConfig and goodConfig.goodsData then
        for _, item in ipairs(goodConfig.goodsData) do
            table.insert(Global.GoodsDate, {
                id = item.id,
                name = item.name,
                description = item.description,
                price = item.price,
                icon = item.icon,
                count = item.count,
                type = item.type
            })
        end
    else
        print("错误：无法加载商品配置")
    end
end

Global.ClassificationBtns = {}